home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / source / cardpkg_1.3.lha / CardPkg / CardHImages.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-19  |  1.5 KB  |  47 lines

  1. /************************************************************
  2.  
  3.     TML's C Language Card Image Package  v1.1
  4.     January, 1993
  5.     Todd M. Lewis             (919) 776-7386
  6.     2601 Piedmont Drive
  7.     Sanford, NC  27330-9437
  8.     USA
  9. ************************************************************/
  10.  
  11. #ifndef CARD_H_IMAGES_H
  12. #define CARD_H_IMAGES_H 1
  13. #include <exec/types.h>
  14.  
  15. #include "Cards.h"
  16.  
  17. #define CARD_H_WIDTH   64
  18. #define CARD_H_HEIGHT  18
  19. #define CARD_H_DEPTH    2
  20.  
  21. extern UWORD CardHBrush [];
  22. extern UWORD CardHBrush1[];
  23. extern UWORD CardHBrush2[];
  24. /*----- bitmap : w = 512, h = 126, d = 3 ------ words = 8064 ---*/
  25.  
  26. extern BOOL ShowHCard( struct RastPort *rp, CardID_t Card, WORD dx, WORD dy );
  27.    /*  rp had better point to a real RastPort.                   */
  28.    /*  Card is an CardID_t .                                     */
  29.    /*  dx and dy are the offsets of the upper left corner of the */
  30.    /*     selected card in the RastPort.                         */
  31.    /*  Returns FALSE if Card is out of range, TRUE otherwise.    */
  32.  
  33.  
  34. /*
  35.  *The way these things are set up, you can say:
  36.  *
  37.  *   ShowHCard( rp, CardID(SUIT_SPADES,2), 10, 20 );
  38.  *
  39.  * to display the 2 of Spades.
  40.  *
  41.  * The Jack  of Spades would be ShowHCard( rp, CardID(SUIT_SPADES,11),     dx, dy).
  42.  * The Queen of Clubs  would be ShowHCard( rp, CardID(SUIT_CLUBS, 12),     dx, dy).
  43.  * The King  of Hearts would be ShowHCard( rp, CardID(SUIT_HEARTS,13),     dx, dy).
  44.  * The Joker           would be ShowHCard( rp, CardID(SUIT_SPECIAL,JOKER), dx, dy).
  45.  */
  46. #endif
  47.